package com.lms.thread.demo2;

/**
 * @Author: 李孟帅
 * @CreateTime: 2020-01-19 09:29
 * @Description: ${Description}
 */
public class Task extends Thread{
    private SynchronizedTest synchronizedTest;
    public Task(SynchronizedTest synchronizedTest){
        this.synchronizedTest=synchronizedTest;
    }

    @Override
    public void run() {
        synchronizedTest.sync3();
//        synchronizedTest.nosync();

    }
}
